<h2>Dashboard</h2>

<p>Welcome, <%= current_user.login.capitalize %>!</p>

<h3>Movie recommendations for you:</h3>
<table id="movies" summary="List of all appropriate movies for this user.">
    <tr>
      <th>Movie Title</th>
      <th>Rating</th>
      <th>Release Date</th>
      <th>More Info</th>
    </tr>
  <% count_each(@movies) do |movie| %>
    <tr class="<%= oddness(@count) %>">
      <td><%= movie.title %></td>
      <td><%= movie.rating %></td>
      <td><%= movie.release_date %></td>
      <td><%= link_to "More about #{movie.title}", movie %></td>
    </tr>
  <% end %>
</table>
  
<ul id="page_nav">
  <li>Return to <%= link_to "All Movies", movies_path %></li>
</ul>